package cur.nature.component.nacos.property;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "nacos.rest")
@Data
@RefreshScope
@ConditionalOnProperty( value = {"cur.component.nacos.enable"})
public class RestConfig {

    private Integer connectTimeout;
    private Integer readTimeout;

}
